package com.wechat.weibo.entity;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
import org.springframework.validation.annotation.Validated;

import java.util.Date;

@Component
public class User {
    private int main_id;
    private String openid;
    private String userName;
    private String userBrief="这个人很懒，什么都没有写";
    private int weibo=0;    //微博数
    private int pick=0;     //关注数
    private int fans=0;
    private String img;     //头像
    private int pick_mode;
//    1:相互关注  -2:互不相识   单向关注：{0:你关注他（显示“已关注”）   -1:他关注你（显示“未关注）}   -3:是你自己

    public int getPick_mode() {
        return pick_mode;
    }

    public void setPick_mode(int pick_mode) {
        this.pick_mode = pick_mode;
    }


    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public int getMain_id() {
        return main_id;
    }

    public void setMain_id(int main_id) {
        this.main_id = main_id;
    }

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserBrief() {
        return userBrief;
    }

    public void setUserBrief(String userBrief) {
        this.userBrief = userBrief;
    }

    public int getWeibo() {
        return weibo;
    }

    public void setWeibo(int weibo) {
        this.weibo = weibo;
    }

    public int getPick() {
        return pick;
    }

    public void setPick(int pick) {
        this.pick = pick;
    }

    public int getFans() {
        return fans;
    }

    public void setFans(int fans) {
        this.fans = fans;
    }

    @Override
    public String toString() {
        return "User{" +
                "main_id=" + main_id +
                ", openid='" + openid + '\'' +
                ", userName='" + userName + '\'' +
                ", userBrief='" + userBrief + '\'' +
                ", weibo=" + weibo +
                ", pick=" + pick +
                ", fans=" + fans +
                ", img='" + img + '\'' +
                ", pick_mode=" + pick_mode +
                '}';
    }
}
